package com.wxy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.wxy.domain.user2;

@Mapper
public interface userMapper {
	@Select("select * from user where id=#{id}")
	@Results({
		@Result(column = "id",property = "id"),
		@Result(column = "username",property = "username"),
		@Result(column = "password",property = "password"),
	})
	public user2 findById(int id);
	
	@Update("update user set username=#{username} where id=#{id}")
	public int updateById(int id,String username);
}
